import { createApp } from 'vue'
import App from './App.vue'

import Element from 'element-plus'
import 'element-plus/dist/index.css'

import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from './router'

function use(app) {
  app.use(router)
  app.use(Element)
  app.use(VXETable)
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
}

const app = createApp(App)

app.use(use).mount('#app')
